package com.example.searchbook1_1;

import java.util.Timer;
import java.util.TimerTask;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;

public class FirstActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_first);
		final Timer mTimer=new Timer();
		mTimer.schedule(new TimerTask() {
			
			@Override
			public void run() {
				mTimer.cancel();
				Log.i("main", "fadsfas");
				runOnUiThread(new Runnable(){
						
					@Override
					public void run() {
						// TODO Auto-generated method stub
						Log.i("main", "fadsfas");
						Intent intent=new Intent(FirstActivity.this,LoginActivity.class);
						startActivity(intent);
						finish();
					}
				});
				
			}
		},2000);
		
		
		
	}
	

	
}
